package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:09 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProductUIImage implements java.io.Serializable {

  public ProductUIImage() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long domainId;

  /** Attribute domainId Be Seted Falg */
  private boolean domainIdSetted = false;

  /** Attribute domainId is Null Falg */
  private boolean domainIdNull = false;

  /**
   * Get domainId
   *
   * @return long
   */
  public final long getDomainId() {

    return domainId;
  }

  /**
   * Set domainId
   *
   * @param long
   */
  public final void setDomainId(long domainId) {

    this.domainId = domainId;

    this.domainIdSetted = true;

    this.setDomainIdNull(false);
  }

  /**
   * Get domainId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDomainIdSetted() {
    return this.domainIdSetted;
  }

  /** Set domainId Null */
  public final void setDomainIdNull() {

    this.domainIdNull = true;
  }

  public final void setDomainIdNull(boolean aNullFlag) {

    this.domainIdNull = aNullFlag;
  }

  public final boolean isDomainIdNull() {

    return this.domainIdNull;
  }

  private String imageCode;

  /** Attribute imageCode Be Seted Falg */
  private boolean imageCodeSetted = false;

  /** Attribute imageCode is Null Falg */
  private boolean imageCodeNull = false;

  /**
   * Get imageCode
   *
   * @return String
   */
  public final String getImageCode() {

    if (isImageCodeNull()) {
      return null;
    } else {
      return StringUtils.trim(imageCode);
    }
  }

  /**
   * Set imageCode
   *
   * @param String
   */
  public final void setImageCode(String imageCode) {

    this.imageCode = StringUtils.trim(imageCode);

    this.imageCodeSetted = true;

    this.setImageCodeNull(this.imageCode == null);
  }

  /**
   * Get imageCode Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImageCodeSetted() {
    return this.imageCodeSetted;
  }

  /** Set imageCode Null */
  public final void setImageCodeNull() {

    this.imageCodeNull = true;
  }

  public final void setImageCodeNull(boolean aNullFlag) {

    this.imageCodeNull = aNullFlag;
  }

  public final boolean isImageCodeNull() {

    return this.imageCodeNull;
  }

  private String imagePath;

  /** Attribute imagePath Be Seted Falg */
  private boolean imagePathSetted = false;

  /** Attribute imagePath is Null Falg */
  private boolean imagePathNull = false;

  /**
   * Get imagePath
   *
   * @return String
   */
  public final String getImagePath() {

    if (isImagePathNull()) {
      return null;
    } else {
      return StringUtils.trim(imagePath);
    }
  }

  /**
   * Set imagePath
   *
   * @param String
   */
  public final void setImagePath(String imagePath) {

    this.imagePath = StringUtils.trim(imagePath);

    this.imagePathSetted = true;

    this.setImagePathNull(this.imagePath == null);
  }

  /**
   * Get imagePath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImagePathSetted() {
    return this.imagePathSetted;
  }

  /** Set imagePath Null */
  public final void setImagePathNull() {

    this.imagePathNull = true;
  }

  public final void setImagePathNull(boolean aNullFlag) {

    this.imagePathNull = aNullFlag;
  }

  public final boolean isImagePathNull() {

    return this.imagePathNull;
  }

  private int imageWidth;

  /** Attribute imageWidth Be Seted Falg */
  private boolean imageWidthSetted = false;

  /** Attribute imageWidth is Null Falg */
  private boolean imageWidthNull = false;

  /**
   * Get imageWidth
   *
   * @return int
   */
  public final int getImageWidth() {

    return imageWidth;
  }

  /**
   * Set imageWidth
   *
   * @param int
   */
  public final void setImageWidth(int imageWidth) {

    this.imageWidth = imageWidth;

    this.imageWidthSetted = true;

    this.setImageWidthNull(false);
  }

  /**
   * Get imageWidth Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImageWidthSetted() {
    return this.imageWidthSetted;
  }

  /** Set imageWidth Null */
  public final void setImageWidthNull() {

    this.imageWidthNull = true;
  }

  public final void setImageWidthNull(boolean aNullFlag) {

    this.imageWidthNull = aNullFlag;
  }

  public final boolean isImageWidthNull() {

    return this.imageWidthNull;
  }

  private int imageHeight;

  /** Attribute imageHeight Be Seted Falg */
  private boolean imageHeightSetted = false;

  /** Attribute imageHeight is Null Falg */
  private boolean imageHeightNull = false;

  /**
   * Get imageHeight
   *
   * @return int
   */
  public final int getImageHeight() {

    return imageHeight;
  }

  /**
   * Set imageHeight
   *
   * @param int
   */
  public final void setImageHeight(int imageHeight) {

    this.imageHeight = imageHeight;

    this.imageHeightSetted = true;

    this.setImageHeightNull(false);
  }

  /**
   * Get imageHeight Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImageHeightSetted() {
    return this.imageHeightSetted;
  }

  /** Set imageHeight Null */
  public final void setImageHeightNull() {

    this.imageHeightNull = true;
  }

  public final void setImageHeightNull(boolean aNullFlag) {

    this.imageHeightNull = aNullFlag;
  }

  public final boolean isImageHeightNull() {

    return this.imageHeightNull;
  }

  private String imageType;

  /** Attribute imageType Be Seted Falg */
  private boolean imageTypeSetted = false;

  /** Attribute imageType is Null Falg */
  private boolean imageTypeNull = false;

  /**
   * Get imageType
   *
   * @return String
   */
  public final String getImageType() {

    if (isImageTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(imageType);
    }
  }

  /**
   * Set imageType
   *
   * @param String
   */
  public final void setImageType(String imageType) {

    this.imageType = StringUtils.trim(imageType);

    this.imageTypeSetted = true;

    this.setImageTypeNull(this.imageType == null);
  }

  /**
   * Get imageType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImageTypeSetted() {
    return this.imageTypeSetted;
  }

  /** Set imageType Null */
  public final void setImageTypeNull() {

    this.imageTypeNull = true;
  }

  public final void setImageTypeNull(boolean aNullFlag) {

    this.imageTypeNull = aNullFlag;
  }

  public final boolean isImageTypeNull() {

    return this.imageTypeNull;
  }

  private String lastModifyUser;

  /** Attribute lastModifyUser Be Seted Falg */
  private boolean lastModifyUserSetted = false;

  /** Attribute lastModifyUser is Null Falg */
  private boolean lastModifyUserNull = false;

  /**
   * Get lastModifyUser
   *
   * @return String
   */
  public final String getLastModifyUser() {

    if (isLastModifyUserNull()) {
      return null;
    } else {
      return StringUtils.trim(lastModifyUser);
    }
  }

  /**
   * Set lastModifyUser
   *
   * @param String
   */
  public final void setLastModifyUser(String lastModifyUser) {

    this.lastModifyUser = StringUtils.trim(lastModifyUser);

    this.lastModifyUserSetted = true;

    this.setLastModifyUserNull(this.lastModifyUser == null);
  }

  /**
   * Get lastModifyUser Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyUserSetted() {
    return this.lastModifyUserSetted;
  }

  /** Set lastModifyUser Null */
  public final void setLastModifyUserNull() {

    this.lastModifyUserNull = true;
  }

  public final void setLastModifyUserNull(boolean aNullFlag) {

    this.lastModifyUserNull = aNullFlag;
  }

  public final boolean isLastModifyUserNull() {

    return this.lastModifyUserNull;
  }

  private java.util.Date lastModifyTime;

  /** Attribute lastModifyTime Be Seted Falg */
  private boolean lastModifyTimeSetted = false;

  /** Attribute lastModifyTime is Null Falg */
  private boolean lastModifyTimeNull = false;

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastModifyTime() {

    return lastModifyTime;
  }

  /**
   * Set lastModifyTime
   *
   * @param java.util.Date
   */
  public final void setLastModifyTime(java.util.Date lastModifyTime) {

    this.lastModifyTime = lastModifyTime;

    this.lastModifyTimeSetted = true;

    this.setLastModifyTimeNull(this.lastModifyTime == null);
  }

  /**
   * Get lastModifyTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastModifyTimeSetted() {
    return this.lastModifyTimeSetted;
  }

  /** Set lastModifyTime Null */
  public final void setLastModifyTimeNull() {

    this.lastModifyTimeNull = true;
  }

  public final void setLastModifyTimeNull(boolean aNullFlag) {

    this.lastModifyTimeNull = aNullFlag;
  }

  public final boolean isLastModifyTimeNull() {

    return this.lastModifyTimeNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private byte[] imageContent;

  /** Attribute imageContent Be Seted Falg */
  private boolean imageContentSetted = false;

  /** Attribute imageContent is Null Falg */
  private boolean imageContentNull = false;

  /**
   * Get imageContent
   *
   * @return byte[]
   */
  public final byte[] getImageContent() {

    return imageContent;
  }

  /**
   * Set imageContent
   *
   * @param byte[]
   */
  public final void setImageContent(byte[] imageContent) {

    this.imageContent = imageContent;

    this.imageContentSetted = true;

    this.setImageContentNull(this.imageContent == null);
  }

  /**
   * Get imageContent Has Been Setted
   *
   * @return boolean
   */
  public final boolean isImageContentSetted() {
    return this.imageContentSetted;
  }

  /** Set imageContent Null */
  public final void setImageContentNull() {

    this.imageContentNull = true;
  }

  public final void setImageContentNull(boolean aNullFlag) {

    this.imageContentNull = aNullFlag;
  }

  public final boolean isImageContentNull() {

    return this.imageContentNull;
  }

  private String domainCode;

  /** Attribute domainCode Be Seted Falg */
  private boolean domainCodeSetted = false;

  /** Attribute domainCode is Null Falg */
  private boolean domainCodeNull = false;

  /**
   * Get domainCode
   *
   * @return String
   */
  public final String getDomainCode() {

    if (isDomainCodeNull()) {
      return null;
    } else {
      return StringUtils.trim(domainCode);
    }
  }

  /**
   * Set domainCode
   *
   * @param String
   */
  public final void setDomainCode(String domainCode) {

    this.domainCode = StringUtils.trim(domainCode);

    this.domainCodeSetted = true;

    this.setDomainCodeNull(this.domainCode == null);
  }

  /**
   * Get domainCode Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDomainCodeSetted() {
    return this.domainCodeSetted;
  }

  /** Set domainCode Null */
  public final void setDomainCodeNull() {

    this.domainCodeNull = true;
  }

  public final void setDomainCodeNull(boolean aNullFlag) {

    this.domainCodeNull = aNullFlag;
  }

  public final boolean isDomainCodeNull() {

    return this.domainCodeNull;
  }

  private String domainName;

  /** Attribute domainName Be Seted Falg */
  private boolean domainNameSetted = false;

  /** Attribute domainName is Null Falg */
  private boolean domainNameNull = false;

  /**
   * Get domainName
   *
   * @return String
   */
  public final String getDomainName() {

    if (isDomainNameNull()) {
      return null;
    } else {
      return StringUtils.trim(domainName);
    }
  }

  /**
   * Set domainName
   *
   * @param String
   */
  public final void setDomainName(String domainName) {

    this.domainName = StringUtils.trim(domainName);

    this.domainNameSetted = true;

    this.setDomainNameNull(this.domainName == null);
  }

  /**
   * Get domainName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDomainNameSetted() {
    return this.domainNameSetted;
  }

  /** Set domainName Null */
  public final void setDomainNameNull() {

    this.domainNameNull = true;
  }

  public final void setDomainNameNull(boolean aNullFlag) {

    this.domainNameNull = aNullFlag;
  }

  public final boolean isDomainNameNull() {

    return this.domainNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUIImage) == false) {
      return false;
    }
    ProductUIImage other = (ProductUIImage) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("domainId=");
    buffer.append(this.domainId);

    buffer.append("imageCode=");
    buffer.append(this.imageCode);

    buffer.append("imagePath=");
    buffer.append(this.imagePath);

    buffer.append("imageWidth=");
    buffer.append(this.imageWidth);

    buffer.append("imageHeight=");
    buffer.append(this.imageHeight);

    buffer.append("imageType=");
    buffer.append(this.imageType);

    buffer.append("lastModifyUser=");
    buffer.append(this.lastModifyUser);

    buffer.append("lastModifyTime=");
    buffer.append(this.lastModifyTime);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("domainCode=");
    buffer.append(this.domainCode);

    buffer.append("domainName=");
    buffer.append(this.domainName);

    buffer.append("imageContent=");
    buffer.append(this.imageContent);

    buffer.append("]");

    return buffer.toString();
  }
}
